From: Keir Fraser Date: Mon, 23 May 2011 17:35:04 +0000 (+0100) Subject: drivers/passthrough: Revert 23352:ea48976517af -- incorrect bugfix. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10327 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=36a72c1e42900b2f093ca8a2a3aa80ff1558c353;p=xen.git drivers/passthrough: Revert 23352:ea48976517af -- incorrect bugfix. Signed-off-by: Keir Fraser --- diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index 1cd82d632f..e30cd950a3 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -173,11 +173,11 @@ out: int pci_remove_device(u8 bus, u8 devfn) { - struct pci_dev *pdev, *tmp; + struct pci_dev *pdev; int ret = -ENODEV; spin_lock(&pcidevs_lock); - list_for_each_entry_safe ( pdev, tmp, &alldevs_list, alldevs_list ) + list_for_each_entry ( pdev, &alldevs_list, alldevs_list ) if ( pdev->bus == bus && pdev->devfn == devfn ) { ret = iommu_remove_device(pdev);